home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-06 | 960 b | 42 lines | [TEXT/GEOL] |
- Item 3835962 6-Oct-89 07:50
-
- From: KNEPPER Knepper, Christopher
-
- To: D0738 Kane Biomedical System, S Helm,PRT
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re: Object Pascal Question
-
- Jeffrey,
-
- Are you aware that MacApp already provides a TList class? It handles all the
- needs of a list (there's also TSortedList if you need a sorted list). My guess
- is that you don't need to declare:
-
- TList = array [0..5] of TmyObj;
-
- Instead you can use the built-in TList so that your class, TMyObj, should work
- as is, provided you allocate aList in IMyObj:
-
- TYPE
- TmyObj = OBJECT(TOBJECT)
- PROCEDURE TMyObj.IMyObj; { !!! Note my addition of IMyObj !!! }
- x,y: integer;
- z: point
- aList : TList;
- function TmyObj.func1(x1,y1):integer;
- end;
-
- in which:
-
- PROCEDURE TMyObj.IMyObj;
- BEGIN
- ...
- aList := NewList;
- ...
- END;
-
- -Chris
-
-